package dao;

import java.util.List;
import javax.persistence.EntityManager;
import modelo.Categoria;


public class CategoriaDAO {
    private final EntityManager manager;
    private final DAO<Categoria,Long> dao;
    
    public CategoriaDAO(EntityManager manager) {
        this.manager = manager;
        dao = new DAO(manager,Categoria.class);
    }
    
    public List<Categoria> listar(){
        return dao.listar();
    }
}
    
